package com.fjec.user.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 002.用户表
 * </p>
 *
 * @author admin
 * @since 2020-08-31
 */
@TableName("sys_user")
public class SysUser implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键Id
     */
    @TableId("Id")
    private Long id;

    /**
     * 用户名
     */
    @TableField("UserName")
    private String userName;

    /**
     * 登录密码
     */
    @TableField("UserPwd")
    private String userPwd;

    /**
     * 盐值
     */
    @TableField("Salt")
    private String salt;

    /**
     * 手机号码
     */
    @TableField("Phone")
    private String phone;

    /**
     * 头像照片
     */
    @TableField("HeadPic")
    private String headPic;

    /**
     * 微信号
     */
    @TableField("WeChat")
    private String weChat;

    /**
     * 账户是否锁定 0=否
1=是
     */
    @TableField("Locked")
    private Integer locked;

    /**
     * 创建时间
     */
    @TableField("CreateTime")
    private LocalDateTime createTime;

    /**
     * 更新时间
     */
    @TableField("UpdateTime")
    private LocalDateTime updateTime;

    /**
     * 已读协议计数
     */
    @TableField("ProtocolNum")
    private Integer ProtocolNum;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }
    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }
    public String getUserPwd() {
        return userPwd;
    }

    public void setUserPwd(String userPwd) {
        this.userPwd = userPwd;
    }
    public String getSalt() {
        return salt;
    }

    public void setSalt(String salt) {
        this.salt = salt;
    }
    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }
    public String getHeadPic() {
        return headPic;
    }

    public void setHeadPic(String headPic) {
        this.headPic = headPic;
    }
    public String getWeChat() {
        return weChat;
    }

    public void setWeChat(String weChat) {
        this.weChat = weChat;
    }
    public Integer getLocked() {
        return locked;
    }

    public void setLocked(Integer locked) {
        this.locked = locked;
    }
    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }
    public LocalDateTime getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(LocalDateTime updateTime) {
        this.updateTime = updateTime;
    }

    public Integer getProtocolNum() {
        return ProtocolNum;
    }

    public void setProtocolNum(Integer protocolNum) {
        ProtocolNum = protocolNum;
    }

    @Override
    public String toString() {
        return "SysUser{" +
            "id=" + id +
            ", userName=" + userName +
            ", userPwd=" + userPwd +
            ", salt=" + salt +
            ", phone=" + phone +
            ", headPic=" + headPic +
            ", weChat=" + weChat +
            ", locked=" + locked +
            ", createTime=" + createTime +
            ", updateTime=" + updateTime +
        "}";
    }
}
